package git.bds.nyc.admin.model.dto;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import git.bds.nyc.admin.convert.TypeConvert;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @author 成大事
 * @since 2023/5/14 15:10
 */
@Getter
@Setter
@EqualsAndHashCode
public class OrderResultDTO {


    @ExcelProperty("产品种类")
    private String productSpecies;

    @ExcelProperty("产品品种")
    private String productVariety;

    @ExcelProperty(value = "产品类型", converter = TypeConvert.class)
    private Integer type;

    @ExcelProperty("单价(元)")
    private BigDecimal unitPrice;

    @ColumnWidth(20)
    @ExcelProperty("订单重量(单位：kg)")
    private BigDecimal orderWeight;

    @ExcelProperty("卖方姓名")
    private String sellerName;


    @ExcelProperty("卖方电话")
    private String sellerPhone;


    @ColumnWidth(30)
    @ExcelProperty("卖方所在地")
    private String sellerLocation;

    @ColumnWidth(50)
    @ExcelProperty("卖方详细地址")
    private String sellerDetailedAddress;

    @ExcelProperty("买方姓名")
    private String buyerName;


    @ExcelProperty("买方电话")
    private String buyerPhone;

    @ColumnWidth(30)
    @ExcelProperty("买方所在地")
    private String buyerLocation;


    @ColumnWidth(50)
    @ExcelProperty("买方详细地址")
    private String buyerDetailedAddress;


    @ExcelProperty("评论")
    private String remark;

    @ColumnWidth(20)
    @ExcelProperty("下单时间")
    private LocalDateTime createTime;

    @ColumnWidth(20)
    @ExcelProperty("完成时间")
    private LocalDateTime completeTime;
}
